package mytest.com.myapplication;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by 王家宝 on 2017/11/6.
 * Email:639586819@qq.com
 * Tel:18241150668
 */

/**
 * 这是一构造方法带参数的类，
 */
public class Orange {
    private Knife mKnife;
    private Context mContext;

    public Orange(Knife knife, Context context) {
        Log.d("MyTest", "Orange初始化完成");
        this.mKnife = knife;
        this.mContext=context;
        mKnife.cutThings();
    }

    protected void showToast(){
        Toast.makeText(mContext, "橘子说话了", Toast.LENGTH_SHORT).show();
    }
}
